package com.cea.papyrus.multidiagram.gef;

import org.eclipse.ui.IEditorPart;

import com.cea.papyrus.multidiagram.extension.MultiDiagramSharedObjects;


/**
 * Registry used to create a new nested editor for a specified model.
 *  
 * @author dumoulin
 * TODO move this to extension.
 */
public interface IEditorFactoryRegistry {

	/**
	 * Create a new editor for the specified diagram root.
	 * @throws EditorNotFoundException No editor handling the model can be found.
	 */
	public IEditorPart createEditorFor(MultiDiagramSharedObjects sharedObjects, Object model) throws EditorNotFoundException;

}